<!doctype html>
<html class="x-admin-sm">

<head>
  <meta charset="UTF-8">
  <title>市级盘点</title>
  <meta name="renderer" content="webkit|ie-comp|ie-stand">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <link rel="stylesheet" href="../../css/xadmin.css">
  <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>

  <script src="../../js/app.js" type="text/javascript" charset="utf-8"></script>
  <style type="text/css">

  </style>
</head>

<body>
  <div class="layui-fluid">
    <div class="layui-row layui-col-space15">
      <div class="layui-col-md12">
        <div class="layui-card">
          <div class="layui-card-body ">
            <!-- 盘点条件筛选 -->
            <div class="layui-collapse" lay-accordion="">
              <!-- 市级仓库盘点 -->
              <div class="layui-colla-item">
                <h2 class="layui-colla-title">本市仓库盘点</h2>
                <div class="layui-colla-content layui-show">

                  <div class="layui-form">
                    <div class="layui-form-item">
                      <div class="layui-inline">
                        <label class="layui-form-label">选择年月：</label>
                        <div class="layui-input-inline">
                          <input type="text" class="layui-input" id="inventoryCityDate" placeholder="yyyy-MM">
                        </div>
                      </div>
                    </div>
                    <div class="layui-form-item">
                      <div class="layui-inline">
                        <label class="layui-form-label">盘点类型：</label>
                        <div class="layui-input-inline">
                          <select id="citySelect" name="modules" lay-verify="required" lay-search="">
                            <option value="">直接选择或搜索选择</option>  
                            <option value="1">终端</option>
                            <option value="2">设备</option>
                            <option value="3">物料</option>
                          </select>
                        </div>
                      </div>
                    </div>
                    <div class="layui-form-item">
                      <div style="width: 270px; margin: 0 auto 30px 35px;">
                        <button id="cityInventoryBtn" type="button" class="layui-btn layui-btn-fluid">开始盘点</button>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <!-- 县级仓库盘点 -->
              <!-- <div class="layui-colla-item">
                <h2 class="layui-colla-title">县级仓库盘点</h2>
                <div class="layui-colla-content">

                  <div class="layui-form">
                    <div class="layui-form-item">
                      <div class="layui-inline">
                        <label class="layui-form-label">选择县区：</label>
                        <div class="layui-input-inline">
                          <select name="modules" lay-verify="required" lay-search="">
                            <option value="">直接选择或搜索选择</option>
                            <option value="1">郫县</option>
                            <option value="2">新津</option>
                            <option value="3">金牛</option>
                          </select>
                        </div>
                      </div>
                    </div>
                    <div class="layui-form-item">
                      <div class="layui-inline">
                        <label class="layui-form-label">选择年月：</label>
                        <div class="layui-input-inline">
                          <input type="text" class="layui-input" id="inventoryCountyDate" placeholder="yyyy-MM">
                        </div>
                      </div>
                    </div>
                    <div class="layui-form-item">
                      <div class="layui-inline">
                        <label class="layui-form-label">盘点类型：</label>
                        <div class="layui-input-inline">
                          <select name="modules" lay-verify="required" lay-search="">
                            <option value="">直接选择或搜索选择</option>
                            <option value="1">终端</option>
                            <option value="2">设备</option>
                            <option value="3">物料</option>
                          </select>
                        </div>
                      </div>
                    </div>
                    <div class="layui-form-item">
                      <div style="width: 270px; margin: 0 auto 30px 35px;">
                        <button type="button" class="layui-btn layui-btn-fluid">开始盘点</button>
                      </div>
                    </div>
                  </div>
                </div>
              </div> -->
              <!-- 个人仓库盘点 -->
              <!-- <div class="layui-colla-item">
                <h2 class="layui-colla-title">个人仓库盘点</h2>
                <div class="layui-colla-content">

                  <div class="layui-form">
                    <div class="layui-form-item">
                      <div class="layui-inline layui-show-xs-block" style="width: 280px; margin-left: 35px;">
                        <input id="username" type="text" name="username" placeholder="输入姓名或工号查询员工仓库" autocomplete="off"
                          class="layui-input">
                      </div>
                      <div class="layui-inline layui-show-xs-block">
                        <button id="search" class="layui-btn" lay-submit="" lay-filter="sreach"><i
                            class="layui-icon">&#xe615;</i></button>
                      </div>
                      <table class="layui-table" style="width: 1100px; margin-left: 35px;">
                        <thead>
                          <tr>
                            <th>工号</th>
                            <th>姓名</th>
                            <th>性别</th>
                            <th>年龄</th>
                            <th>用户归属</th>
                            <th>操作</th>
                          </tr> 
                        </thead>
                        <tbody>
                          <tr>
                            <td>111</td>
                            <td>张三</td>
                            <td>女</td>
                            <td>32</td>
                            <td>郫县</td>
                            <td><button type="button" class="layui-btn layui-btn-primary layui-btn-sm">选择此人</button></td>
                          </tr>
                        </tbody>
                      </table>
                    </div>
                    <div class="layui-form-item">
                      <div class="layui-inline">
                        <label class="layui-form-label">选择年月：</label>
                        <div class="layui-input-inline">
                          <input type="text" class="layui-input" id="inventoryPersonalDate" placeholder="yyyy-MM">
                        </div>
                      </div>
                    </div>
                    <div class="layui-form-item">
                      <div class="layui-inline">
                        <label class="layui-form-label">盘点类型：</label>
                        <div class="layui-input-inline">
                          <select name="modules">
                            <option value="">直接选择或搜索选择</option>
                            <option value="1">终端</option>
                            <option value="2">设备</option>
                            <option value="3">物料</option>
                          </select>
                        </div>
                      </div>
                    </div>
                    <div class="layui-form-item">
                      <div style="width: 270px; margin: 0 auto 30px 35px;">
                        <button type="button" class="layui-btn layui-btn-fluid">开始盘点</button>
                      </div>
                    </div>
                  </div>
                </div>
              </div> -->
            </div>
            <!-- 盘点结果 -->
            <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
              <legend>盘点结果</legend>
            </fieldset>
            <table class="layui-table">
              <thead>
                <tr>
                  <th>品名</th>
                  <th>品牌</th>
                  <th>型号</th>
                  <th>入库数量</th>
                  <th>出库数量</th>
                  <th>消库数量</th>
                </tr> 
              </thead>
              <tbody id="tbody">
                <tr>
                  <td>暂无</td>
                  <td>暂无</td>
                  <td>暂无</td>
                  <td>暂无</td>
                  <td>暂无</td>
                  <td>暂无</td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
      </div>
    </div>
  </div>


  <script src="inventory.js"></script>
  <script src="../../lib/layui/layui.js" charset="utf-8"></script>
  <script>
    layui.use(['element', 'layer', 'laydate', 'form'], function () {
      var element = layui.element;
      var layer = layui.layer;
      var laydate = layui.laydate;

      //监听折叠
      element.on('collapse(test)', function (data) {
        layer.msg('展开状态：' + data.show);
      });

      //年月选择器(市、县、个人)
      laydate.render({
        elem: '#inventoryCityDate',
        type: 'month',
        max : "new Date()",
        done: function (value, date) {
          // 获得所选日期
          localStorage.setItem("inventoryCityDate", value);
          // layer.alert('你选择的日期是：' + value + '<br>获得的对象是' + JSON.stringify(date));
        }
      });
      laydate.render({
        elem: '#inventoryCountyDate',
        type: 'month',
        max : "new Date()",
        done: function (value, date) {
          // 获得所选日期
          localStorage.setItem("inventoryCountyDate", value);
          // layer.alert('你选择的日期是：' + value + '<br>获得的对象是' + JSON.stringify(date));
        }
      });
      laydate.render({
        elem: '#inventoryPersonalDate',
        type: 'month',
        max : "new Date()",
        done: function (value, date) {
          // 获得所选日期
          localStorage.setItem("inventoryPersonalDate", value);
          // layer.alert('你选择的日期是：' + value + '<br>获得的对象是' + JSON.stringify(date));
        }
      });
    });
  </script>
  <script>
    //百度统计可去掉
    var _hmt = _hmt || [];
    (function () {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>
</body>

</html>